package com.ozy.kxreader

import android.app.Application
import android.os.Bundle
import com.ozy.kxreader.R
import com.ozy.kxreader.base.BaseActivity
import com.ozy.kxreader.di.component.AppComponent
import com.ozy.kxreader.di.component.DaggerMainComponent
import com.ozy.kxreader.di.module.MainModule
import com.ozy.kxreader.mvp.contract.MainContract
import com.ozy.kxreader.mvp.presenter.MainPresenter
import javax.inject.Inject

class MainActivity : BaseActivity<MainPresenter>(), MainContract.View {


    override fun setupActivityComponent(appComponent: AppComponent?) =
            DaggerMainComponent
                    .builder()
                    .appComponent(appComponent)
                    .mainModule(MainModule(this))
                    .build()
                    .inject(this)

    @Inject
    lateinit var app: Application



    override fun initData(savedInstanceState: Bundle?) {

    }

    override fun layoutId(): Int = R.layout.activity_main

}
